package com.linsen.gateway.handler;


import com.linsen.gateway.initializer.ApiResourcesMapping;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author zhaoyong
 * @date 2023/8/5
 */
public class SaTokenApiResourcesMappingHandler {
    private static volatile Map<String, ApiResourcesMapping> mappings = new LinkedHashMap<>();

    public static Map<String, ApiResourcesMapping> getMappings() {
        return SaTokenApiResourcesMappingHandler.mappings;
    }

    public static synchronized void setMappings(Map<String, ApiResourcesMapping> mappings) {
        SaTokenApiResourcesMappingHandler.mappings = mappings;
    }
}

